package com.wing.sell.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.common.utils.JsonResult;
import com.wing.sell.model.entity.CustomerComplaintLabelCategory;
import com.wing.sell.model.request.CustomerComplaintLabelCategoryForm;
import com.wing.sell.model.response.CustomerComplaintLabelCategoryVO;

import java.util.List;
import java.util.Map;

/**
 * 客诉标签分类-Service
 *
 * @author
 */
public interface CustomerComplaintLabelCategoryService extends IService<CustomerComplaintLabelCategory> {

    /**
     * 添加
     *
     * @param customerComplaintLabelCategoryForm
     * @return
     */
    int add(CustomerComplaintLabelCategoryForm customerComplaintLabelCategoryForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<CustomerComplaintLabelCategoryVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<CustomerComplaintLabelCategoryVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    CustomerComplaintLabelCategoryVO get4appById(Long id);

    JsonResult getTreeData(Long selectId);

    /**
     * 删除客诉标签分类
     * @param customerComplaintLabelCategoryId
     * @return
     */
    boolean delete(Long customerComplaintLabelCategoryId);

    /**
     * 启用
     * @param id
     * @return
     */
    int enable(Long id);

    /**
     * 停用
     * @param id
     * @return
     */
    int disable(Long id);
}
